<!--
*Author：COCO
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/report/report/View_ReportInStockTotal.js此处编写
 -->
<template>
    <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields"
        :editFormOptions="editFormOptions" :searchFormFields="searchFormFields" :searchFormOptions="searchFormOptions"
        :table="table" :extend="extend">
    </view-grid>
</template>
<script>
import extend from "@/extension/report/report/View_ReportInStockTotal2.js";
import { ref, defineComponent } from "vue";
export default defineComponent({
    setup() {
        const table = ref({
            key: 'ID',
            footer: "Foots",
            cnName: '产品入库汇总(无价格)',
            name: 'report/View_ReportInStockTotal',
            url: "/View_ReportInStockTotal/",
            sortName: "FCuName"
        });
        const editFormFields = ref({});
        const editFormOptions = ref([]);
        const searchFormFields = ref({ "OrgCode": "", "FCusName": "", "FDate": "", "FICMOBillNo": "" });
        const searchFormOptions = ref([[{ "dataKey": "Org", "data": [], "title": "组织", "field": "OrgCode", "type": "select" }, { "title": "入库日期", "field": "FDate", "type": "date" }], [{ "title": "客户名称", "field": "FCusName", "type": "like" }, { "title": "工单号", "field": "FICMOBillNo", "type": "like" }]]);
        const columns = ref([{ field: 'OrgCode', title: '组织', type: 'string', bind: { key: 'Org', data: [] }, width: 110, hidden: true, require: true, align: 'left' },
        { field: 'FBillNo', title: 'HDM订单号', type: 'string', width: 150, require: true, align: 'left', sort: true },
        { field: 'FCusName', title: '客户名称', type: 'string', width: 200, require: true, align: 'left' },
        { field: 'FDate', title: '入库日期', type: 'datetime', width: 110, align: 'left', sort: true },
        { field: 'FICMOBillNo', title: '工单号', type: 'string', width: 150, require: true, align: 'left' },
        { field: 'FNumber', title: '产品料号', type: 'string', width: 200, require: true, align: 'left' },
        { field: 'FName', title: '产品名称', type: 'string', width: 100, require: true, align: 'left' },
        { field: 'POQty', title: '订单数量', type: 'decimal', width: 100, align: 'left' },
        { field: 'FCurrency', title: '币别', type: 'string', width: 100, align: 'left' },
        { field: 'FExchangeRate', title: '汇率', type: 'decimal', width: 100, align: 'left' },
        { field: 'FQty', title: '订单入库数量', type: 'decimal', width: 100, align: 'left' },
        { field: 'StockName', title: '入库仓库', type: 'string', width: 100, align: 'left' },
        { field: 'ID', title: 'ID', type: 'guid', width: 110, hidden: true, require: true, align: 'left' }]);
        const detail = ref({
            cnName: "#detailCnName",
            table: "#detailTable",
            columns: [],
            sortName: "",
            key: ""
        });
        return {
            table,
            extend,
            editFormFields,
            editFormOptions,
            searchFormFields,
            searchFormOptions,
            columns,
            detail,
        };
    },
});
</script>
